<template>
  <div class="page-404">
    <div class="page-blank__cont">
      <div class="top-svg">
        <img
          src="../../assets/404_images/gc_403.svg"
          alt=""
        >
        <!-- <icon-svg
          v-else
          :name="svg"
          class="svg-404"
        /> -->
      </div>
      <div class="bottom-box">
        <p>您要访问的页面没有找到</p>
        <div class="btn-wrap">
            <el-button
              type="primary"
              @click="goHome"
            >
              返回首页
            </el-button>
          <el-button
            @click="logout"
          >
            返回登录页
          </el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Sys404',
  data () {
    return {
    }
  },
  computed: {
    message () {
      return '没有找到您需要的页面'
    }
  },
  methods: {
     logout () {
      this.$store.dispatch("FedLogOut").then(() => {
            // location.href = "/index";
            this.$router.push("/login")
          });
    },
    goHome() {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="scss" scoped>
  .page-404{
    transform: translate(-50%,-50%);
    position: absolute;
    top: 40%;
    left: 50%;
    .page-blank__cont{
      align-items: center;
      text-align: center;
      .top-svg{
        margin: auto;
        width: 600px;
        text-align: center;
        .svg-404{
          width: 600px;
          height: 600px;
        }
        img{
          width: 600px;
        }
      }
      .bottom-box{
        text-align:center;
        color: #76838f;
        font-size: 18px;
        font-weight: normal;
        h1{
          padding: 20px 0;
          font-size: 28px;
          color: #37474f;
          font-weight: normal;
        }
        .btn-wrap{
          margin:24px auto 0;
          button{
            margin-right: 16px;
          }
        }
      }
    }
  }

</style>
